﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MvcApplication.Cms.ApiController
{
    public class OrgMemberController : ApiController
    {
        // GET api/<controller>
        public IEnumerable<AspNet.Identity.DataAccess.IdentityUser> Get(int page, int pageSize, int orgId)
        {
            var userManager = KalikoCMS.Identity.IdentityUserManager.GetManager();
            var users = userManager.Users.Where(t => true).Skip((page - 1) * page).Take(pageSize).ToList();
            return users;
        }

        // GET api/<controller>/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<controller>
        public void Post([FromBody]string value)
        {
        }

        // PUT api/<controller>/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/<controller>/5
        public void Delete(int id)
        {
        }
    }
}